/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;


/**
 *
 * @author PabloSebastian
 */

public class NonWorkingDayPK implements Serializable {
  
    private int day;
    private int month;
    private int year;
    private int pymeidentification;

    public NonWorkingDayPK() {
    }

    public NonWorkingDayPK(int day, int month, int year, int pymeidentification) {
        this.day = day;
        this.month = month;
        this.year = year;
        this.pymeidentification = pymeidentification;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getPymeidentification() {
        return pymeidentification;
    }

    public void setPymeidentification(int pymeidentification) {
        this.pymeidentification = pymeidentification;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) day;
        hash += (int) month;
        hash += (int) year;
        hash += (int) pymeidentification;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NonWorkingDayPK)) {
            return false;
        }
        NonWorkingDayPK other = (NonWorkingDayPK) object;
        if (this.day != other.day) {
            return false;
        }
        if (this.month != other.month) {
            return false;
        }
        if (this.year != other.year) {
            return false;
        }
        if (this.pymeidentification != other.pymeidentification) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.NonWorkingDayPK[ day=" + day + ", month=" + month + ", year=" + year + ", pymeidentification=" + pymeidentification + " ]";
    }
    
}
